package org.jeecg.modules.cosmetic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 包装计算表
 * </p>
 *
 * @author liqing
 * @since 2023-03-23
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("t_package_calculation")
@ApiModel(value = "TPackageCalculation对象", description = "包装计算表")
public class TPackageCalculation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("商品类型：single-单品，individual-套装单独使用，mix-套装混合使用")
    private String product;

    @ApiModelProperty("商品类型：单品，套装单独使用，套装混合使用")
    private String productName;

    @ApiModelProperty("长")
    private String longs;

    @ApiModelProperty("宽")
    private String width;

    @ApiModelProperty("高")
    private String high;

    @ApiModelProperty("体积")
    private String volume;

    @ApiModelProperty("计算结果")
    private String result;

    @ApiModelProperty("根据计算结果建议的体积，包装合格时为空")
    private String resultVolume;

    @ApiModelProperty("计算结果的状态值（0.表示计算结果合格，-1.表示计算结果不合格）")
    private Integer resultStatus;

    @ApiModelProperty("产品计算后的净含量，作为结果返回")
    private String resultContent;

    @ApiModelProperty("表单状态值（-1.删除 0.正常）")
    private Integer status;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date updateTime;


}
